package com.sykj.manage.service.imp;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sykj.manage.dao.SysRoleDao;
import com.sykj.manage.service.SysRoleService;
import com.sykj.manage.model.SysRole;


/**
 * 
 * @author 高志远
 *2018年9月10日下午3:00:56
 *类描述：角色表[sys_role业务逻辑
 */
@Service
public class SysRoleServiceImpl implements SysRoleService{
	@Autowired 
	SysRoleDao sysRoleDao;

	@Override
	public List<SysRole> getAll(SysRole sysRole) {
		// TODO Auto-generated method stub
		return sysRoleDao.getAll(sysRole);
	}

	@Override
	public int delRoles(Object[] role_id) {
		// TODO Auto-generated method stub
		return sysRoleDao.delRoles(role_id);
	}

	@Override
	public int addRole(SysRole sysRole) {
		// TODO Auto-generated method stub
		return sysRoleDao.addRole(sysRole);
	}

	@Override
	public SysRole findRoleById(String role_id) {
		// TODO Auto-generated method stub
		return sysRoleDao.findRoleById(role_id);
	}

	@Override
	public int updRole(SysRole sysRole) {
		// TODO Auto-generated method stub
		return sysRoleDao.updRole(sysRole);
	}

}
